package com.yociyy.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * 公共entity
 * 
 * @author YoCiyy
 * @date 2019/12/12
 */
@Data
@Accessors(chain = true)
public class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@Column(name = "crt_time")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date crtTime;

	@Column(name = "crt_user")
	private String crtUser;

	@Column(name = "crt_name")
	private String crtName;

	@Column(name = "crt_host")
	private String crtHost;

	@Column(name = "upd_time")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updTime;

	@Column(name = "upd_user")
	private String updUser;

	@Column(name = "upd_name")
	private String updName;

	@Column(name = "upd_host")
	private String updHost;

	@Column(name = "deleted")
	private Integer deleted;

}
